package homework5;

public class Chapter06 {
    public static void main(String[] args) {
        int arr[]={11,31,13,441,68,124,7,85,23,8};
        int max=arr[2];
        int j=0;
        for (int i=1;i<arr.length;i++){
            if (max<arr[i]){
                max=arr[i];
                j=i;
            }
        }
        System.out.println("最大为"+max+"下表是"+j);
    }
}
